import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        
    Scanner in =new Scanner(System.in);
    while(in.hasNextInt())
    {
        int a=in.nextInt();
        int b=in.nextInt();
        if(a>1000)
            System.out.println("a<=1000");
        else
            System.out.println(a+b);    
    }
    in.close();

}
}



import java.util.Scanner;
public class Main {
	public static void main(String[] args){	
			Scanner sc = new java.util.Scanner(System.in 

);
			while(sc.hasNext()) {
				
			
			String a = sc.next(); 
			int sum=0,j,k;
			int s[]=new int[100];
			int i=Integer.parseInt(a);
			if (i>=10000&&i<=20000) {
				String b=Integer.toBinaryString(i);
				String c=Integer.toOctalString(i);
				String d=Integer.toHexString(i);
				System.out.println(b+","+c+","+d);
			} else {
				/*for (j = 0; j < a.length(); j++) {
						if(a.charAt(j)!='-') {
						sum+=a.charAt(j);
						System.out.printf("%d ", a.charAt(j));*/
					//System.out.printf("%d ", a.charAt(j));
					//}
				//}
				//System.out.printf("%d ", a.charAt(1));
				if(i<0) i*=-1;
				for(j=0;i>=1;i/=10,j++) {
					k=i%10;
					s[j]=k;
					sum+=k;
				}
				for(i=j-1;i>=0;i--) {
					System.out.printf("%d ", s[i]);
				}
				System.out.println(sum);
			}
			}
			sc.close();
	    }
	
}

import java.util.Scanner;
public class Main {
	public static void main(String[] args){	
			Scanner sc = new java.util.Scanner(System.in 

);
			while(sc.hasNext()) {
				
			
			String a = sc.next(); 
			String sc2=a.replace("-", "");
			String sc3=sc2.replace(".", "");
			int sum=0,j,k;
			int s[]=new int[100];
			int i=Integer.parseInt(sc3);
			
				if(i<0) i*=-1;
				for(j=0;i>=1;i/=10,j++) {
					k=i%10;
					s[j]=k;
					sum+=k;
				}
				/*for(i=j-1;i>=0;i--) {
					System.out.printf("%d ", s[i]);
				}*/
				System.out.println(sum);
			
			}
	    }
	
}
